import axios from 'axios';

export async function TrainList(userid) {
  return axios({
    method:"get",
    url: `http://localhost:8080/Train/Trainlist?userid=${userid}`
  })
}

export async function TrainUpload(formData) {
  return axios({
    method:"post",
    url: "http://localhost:8080/Train/Upload",
    data: formData
  })
}

export async function DeleteFile(record) {
  return axios({
    method:"delete",
    url: "http://localhost:8080/Train/delete",
    data: record
  })
}


